package lambda;
import compiler.*;

@Rule("Expression Expression")
public class Apply extends Expression {

	public Expression fun,arg;
	public Apply(Expression f,Expression a) {
		fun = f; arg = a;
	}
	Object eval(Binds b) {
		return ((Function)fun.eval(b)).apply(arg.eval(b));
	}
	
}